Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. lopy nvram
    Log in to post

    • T

      LoraWAN frames counter does not work after deepsleep if socket is set to non-blocking
      Issues & Bugs • bugs lopy4 deepsleep lopy nvram lora socket • • Tom  

      2
      1
      Votes
      2
      Posts
      582
      Views

      J

      @tom You should probably instead do the following set socket to blocking send set socket to non-blocking receive save config Otherwise you actually try to receive, save, and deep sleep before the packet has actually been (completely) sent. An alternative is to add a manual sleep, but remember that the time between send and receive is variable (the network can change the RxDelay).
    • L

      lora.nvram example needed
      LoPy • deepsleep lopy lorawan nvram lopy nvram • • luc hanneuse  

      8
      0
      Votes
      8
      Posts
      2449
      Views

      G

      I know this is an old post but for me this is still an issue. Any may of learning more about the specifics would be very much appreciated e.g what does pycom.nvs_get(key) return? Should I see somthing in the REPL? Example: >>> lora.nvram_save() >>> l= pycom.nvs_get('lora') >>> print(l) None Am I going about this in completely the wrong way?
    • J

      How to accomplish lora.nvram_restore() ?
      LoPy • lopy nvram • • jalperin  

      4
      0
      Votes
      4
      Posts
      1337
      Views

      J

      Yes, thank you. I know I only need save/restore for deepsleep. But was testing it without deepsleep. Shouldn't it still work? Still looking for any posted example of use of save / restore. Yes, splitting code irrelevant if deepsleep.
    • 1 / 1